Skip to content

Skip empty textContent clear visual work - #566

Merged
wieslawsoltes merged 1 commit into
mainfrom
perf/empty-text-clear-noop-243
Sep 19, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
perf/empty-text-clear-noop-243

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Closes #565. Advances #243 and #235.

Assigning empty textContent to an already-empty ordinary Element or DocumentFragment now returns after author conversion and CharacterData handling, matching the DOM replace-all zero-node result. Style elements are excluded. This avoids redundant unchanged Code OSS row/panel visual work while preserving every real removal/replacement, conversion, focus/selection, adoption, mutation and custom-element lifecycle path.

Validation intentionally deferred: git diff --check passed; 8,192 redundant clears plus populated real-clear/detach/restore/focus/selection/lifecycle/low-memory regressions were authored but not executed. Code OSS A/B, browser/package, future MutationObserver, pixel, physical performance and memory gates remain in #243.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Skip empty textContent clear visual work

1 participant